class D():
    pass


class G():
    def show(self):
        print("i am G")

    pass


class F(G):
    pass


class C(D):
    pass


class B(C, F):
    pass


class E(F):
    def show(self):
        print("i am E")

    pass


class A(B, E):
    pass


a = A()
a.show()